function [caller, file] = get_caller

stack = dbstack('-completenames');
% NOTE: return if we were called from the command line
if (length(stack) < 3)
    caller = '';
    file   = '';
else
    caller = stack(3).name;
    file   = stack(3).file;
end
